package com.qing.emailservice.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName Yjx
 * @Description TODO
 * @date 2022/9/15 15:48
 * @Version 1.0
 */
@Configuration
public class BeanConfig {
    /**
     * security中的 BCryptPasswordEncoder 加密算法
     * @return BCryptPasswordEncoder
     */
    @Bean
    public BCryptPasswordEncoder createPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }

}
